package ricky.loader.protocol
{
	import flash.display.Loader;
	
	import ricky.Interface.ILoadComplete;
	import ricky.Interface.ILoader;
	import ricky.loader.Request;
	
	/**
	 * 自己定义加载 主要用于bitmapdata图形解码
	 */
	public class MyLoader extends Loader
	{
		private var _req:Request;

		private var _loadComplete:ILoadComplete;
		
		private var _tag:*;
		
		public function MyLoader()
		{
			super();
		}

		/**
		 * @private
		 */
		public function set req(value:Request):void
		{
			_req = value;
		}
		
		/**
		 * 加载完成后回调接口
		 */
		public function get loadComplete():ILoadComplete
		{
			return _loadComplete;
		}

		/**
		 * @private
		 */
		public function set loadComplete(value:ILoadComplete):void
		{
			_loadComplete = value;
		}

		/**
		 * 数据缓存
		 */
		public function get tag():*
		{
			return _tag;
		}

		/**
		 * @private
		 */
		public function set tag(value:*):void
		{
			_tag = value;
		}

		/**
		 * 当前请求
		 */
		public function get req():Request
		{
			return _req;
		}

		

	}
}